package com.itheima.mall.service.omsService;

import com.itheima.PageResult;
import com.itheima.pojo.oms.OmsOrderReturnReason;
import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;

@Service
public class OmsOrderReturnReasonService {
    @DubboReference
    private OmsOrderReturnReasonApi omsOrderReturnReasonApi;

    public PageResult<OmsOrderReturnReason> findByPage(Integer pageNum, Integer pageSize) {
        return omsOrderReturnReasonApi.findByPage(pageNum,pageSize);
    }

    public void deleteReturnReason(Integer[] ids) {
        omsOrderReturnReasonApi.deleteReturnReason(ids);
    }

    public void updateStatus(Integer[] ids, Integer status) {
        omsOrderReturnReasonApi.updateStatus(ids,status);
    }

    public OmsOrderReturnReason getById(Integer id) {
        return omsOrderReturnReasonApi.getById(id);
    }

    public void updateById(Integer id, OmsOrderReturnReason orderReturnReason) {
        omsOrderReturnReasonApi.updateById(id,orderReturnReason);
    }

    public void  save(OmsOrderReturnReason omsOrderReturnReason) {
        omsOrderReturnReasonApi.save(omsOrderReturnReason);
    }
}
